package EumnAndIf;

/**
 * @author Knife
 */
public class ChooseByName {
    /**
     * jack
     * lock
     * merry
     * boss
     * if else 判断以后难以进行修改
     */
    public static String chooseByName(String name){
        if (Constance.JACK.equals(name)){
            return "jack";
        } else if (Constance.LOCK.equals(name)){
            return "lock";
        } else if (Constance.BOSS.equals(name)){
            return "boss";
        } else if (Constance.MERRY.equals(name)){
            return "merry";
        }
        return "null";
    }
}
